#ifndef LIGHT_H
#define LIGHT_H
#include <GL/glut.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
class Light
{
public:
    Light(GLfloat* ambient, GLfloat* diffuse, GLfloat* pos);
    void enable()
    {
        glEnable(lightIndex);
    }

    void changePosition(GLfloat* pos)
    {
        lightPos = pos;
        glLightfv(lightIndex, GL_POSITION, lightPos);
    }

    void disable()
    {
        glDisable(lightIndex);
    }
    

private:
     GLfloat *ambientLight;
     GLfloat *diffuseLight;
     GLfloat *lightPos;
     int lightIndex;    //may enconter some const problems
     static int lightNum;
};


#endif
